<!--
 * @Author: 宋杰
 * @Date: 2020-12-31 10:43:47
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-01-12 16:01:53
 * @Description: 一家十一口(猜一字) 注册审核 >>> 注册审核流程页sj
-->
<template>
  <div class="div1">
    <div class="div2">
        <div class="div2_1">机构注册登记资料</div>
      <!-- 对应内容板块 -->
      <div class="div2_2">
        <el-form label-width="80px" :model="formLabelAlign">
          <el-form-item label="法人姓名：">
            <span>{{ formLabelAlign.name }}</span
            >
          </el-form-item>
          <el-form-item label="法人身份证号：">
            <span>{{ formLabelAlign.region }}</span
            >
          </el-form-item>
          <el-form-item label="办学许可证：">
            <span>{{ formLabelAlign.type }}</span
            >
          </el-form-item>
          <el-form-item label="收费许可证：">
            <span>{{ formLabelAlign.zhangchen1 }}</span
            >
          </el-form-item>
          <el-form-item label="教师队伍：" class="wenjianbox">
            <span>{{ formLabelAlign.zhangchen2 }}</span
            ><i class="el-icon-download"></i>
          </el-form-item>
          <el-form-item
            label="办公面积："
          >
            <span>{{ formLabelAlign.zhangchen3 }}</span
            >
          </el-form-item>
          <el-form-item label="教学面积：">
            <span>{{ formLabelAlign.zhangchen4 }}</span
            >
          </el-form-item>
          <el-form-item label="经营内容：">
            <span>{{ formLabelAlign.zhangchen5 }}</span
            >
          </el-form-item>
          <el-form-item label="省市选择：">
            <span>{{ formLabelAlign.zhangchen6 }}</span
            >
          </el-form-item>
          <el-form-item label="详细地址：">
            <span>{{ formLabelAlign.zhangchen7 }}</span
            >
          </el-form-item>
          <el-form-item label="营业执照：" class="tupianBox">
            <span class="tupianBox1">{{ formLabelAlign.zhangchen8 }}</span
            >
          </el-form-item>
          <el-form-item label="法人身份证：" class="tupianBox">
            <span class="tupianBox1">{{ formLabelAlign.zhangchen9 }}</span
            >
            <span class="tupianBox1">{{ formLabelAlign.zhangchen9 }}</span
            >
          </el-form-item>
          <el-form-item label="其他补充材料：" class="wenjianbox">
            <span>{{ formLabelAlign.zhangchen10 }}</span
            ><i class="el-icon-download"></i>
          </el-form-item>
        </el-form>
      </div>
      <!-- 按钮板块 -->
      <div class="div2_3" v-if="showValue">
        <el-button type="danger" @click="next">审 核 打 回</el-button>
        <el-button type="primary" @click="next">审 核 通 过</el-button>
      </div>
    </div>
  </div>
</template>

<script>
//import {} from '';
export default {
  name: "",
  data() {
    return {
      text:this.$route.params.userId,
      showValue:false,
      active: 1,
      formLabelAlign: {
        name: "张远",
        region: "4545454548888888",
        type: "hp45554555454544fjksw",
        zhangchen1: "hp45554555454544fjksw",
        zhangchen2: "教师队伍表格.doc",
        zhangchen3: "153平方",
        zhangchen4: "260平方",
        zhangchen5: "xxx培训、辅导",
        zhangchen6: "江苏省南京市",
        zhangchen7: "栖霞区迈皋桥xxx",
        zhangchen8: "70x70",
        zhangchen9: "70x70",
        zhangchen10: "补充材料.doc",
      }
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {
    this.showValuebtn()
  },
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  //方法集合
  methods: {
    next() {
      if (this.active++ > 4) this.active = 0;
    },
    showValuebtn() {
      console.log(this.text)
      if(this.text == "已通过") {
        this.showValue = false
      } else if (this.text == "未通过") {
        this.showValue = false
      } else if (this.text == "待审核") {
        this.showValue = true
      }
    }
  }
};
</script>
<style scoped>
.div1 {
  /* border: 1px solid #000; */
  background: #f5f6fa;
  /* padding-bottom: 10%; */
}

/* 头部搜索 */
.div2 {
  /* border: 1px solid rgb(253, 40, 40); */
  background: #fff;
}
.div2_1 {
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    text-align: left;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
}
.div2_2 {
  margin: 20px 0;
}
.div2_2 >>> .el-form-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.div2_2 >>> .el-form-item label {
  flex: 0.8;
  margin-bottom: 0;
}
.div2_2 >>> .el-form-item__content {
  flex: 1;
  margin-left: 0 !important;
  text-align: left;
}
.wenjianbox {
    color: #fa8f38;
}
.tupianBox >>>.el-form-item__label {
    align-self:flex-start;
    line-height: 20px;
}

.tupianBox1 {
    border: 1px solid rgb(143, 142, 142);
    display: inline-block;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    margin-right: 10px;
    line-height: 70px;
    text-align: center;
}
.div2_2 >>> .el-form-item__content span {
  cursor: pointer;
}
.div2_2 >>> .el-icon-download {
  margin-left: 4px;
  /* cursor: pointer; */
}
.div2_3 {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.el-icon-download {
    margin-left: 4px;
}
</style>
